package com.xesj.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xesj.util.MyUtils;
import com.xesj.util.PageData;
import com.xesj.util.StatusDemo;
//@Controller
//@RequestMapping("testController")
public class TestController  {
	/*@RequestMapping("/test")
	@ResponseBody
	public PageData test (HttpServletResponse response,HttpServletRequest request) throws Exception{
		PageData pd =new PageData();
		request.setCharacterEncoding("UTF-8");
		response.setContentType("text/html;charset=UTF-8");
		String[] header={"姓名","性别","年龄","职业"};
		String[] attrs={"name","sex","age","profession"};
		String title = "title";
		Map<String, Object> map=new HashMap<>();
		map.put("name", "张小凡");
		map.put("sex", "男");
		map.put("age", "22");
		map.put("profession", "矜持");
	    List<Map<String, Object>> list=new ArrayList<Map<String, Object>>();
	    list.add(map);
		MyUtils.exportDataToExcelAndDownLoad(title, header, attrs, list, response);	
		
		
	    return pd;
	}	*/
	
	public static void main(String[] args) {
		StatusDemo s= new StatusDemo();
		s.map = new HashMap<>();
		s.map.put("S", "555");
		StatusDemo sS= new StatusDemo();
		String p = sS.map.get("S");
		System.out.println(p);
	}
}
